package com.guang.demo1;

import com.guang.demo1.config.Demo1Config;
import com.guang.demo1.service.AccountService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description
 * @Author liguang
 * @Date 2023/08/01/22:42
 */
public class Demo1Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
        applicationContext.register(Demo1Config.class);
        applicationContext.refresh();

        AccountService accountService = applicationContext.getBean(AccountService.class);
        accountService.transfer("tom","jerry",200D);
    }
}
